<?php

/**
 * Account form.
 *
 * @package    emc
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class AccountForm extends BaseAccountForm
{
  public function configure()
  {
  	$this->setWidgets(array(
			'username'					=>		new sfWidgetFormInput(),
			'password'					=>		new sfWidgetFormInput(),
			'is_active'					=>		new sfWidgetFormInputCheckbox(),	
		));
				
		$this->widgetSchema->setNameFormat('account[%s]');
		$this->widgetSchema->setLabels(array(
			'username'					=>		'Username',
			'password'					=>		'Password',
			'is_active'					=>		'Khả dụng',
		));
  }
}
